<?php
/**
 * 财务配置
 * Created on 2022/3/31 9:21
 * Created by 管昌虎
 * Email guanchanghu626@163.com
 * @author 管昌虎
 */

namespace GuanChanghu\Enum\Finance;

use GuanChanghu\Enum\BaseEnum;

/**
 * @author 管昌虎
 * Class FinanceSymbolEnum
 * @method static $this income()
 * @method static $this expend()
 * @package GuanChanghu\Enum\Finance
 * Created on 2025/11/08 21:16
 * Created by 管昌虎
 * Email guanchanghu626@163.com
 */
class FinanceSymbolEnum extends BaseEnum
{
    /**
     * 收入
     */
    public const SYMBOL_INCOME = 1;

    /**
     * 支出
     */
    public const SYMBOL_EXPEND = -1;

    /**
     * @return int[]
     */
    protected static function values(): array
    {
        return [
            'income' => self::SYMBOL_INCOME,
            'expend' => self::SYMBOL_EXPEND,
        ];
    }

    /**
     * @return array|string[]
     */
    protected static function labels(): array
    {
        return [
            'income' => function_exists('__') ? __('enums.finance.symbol.income') : 'income',
            'expend' => function_exists('__') ? __('enums.finance.symbol.expend') : 'expend',
        ];
    }
}
